﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鏅鸿兘AI鑲插効鍔╂墜</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
    <!-- 瀵艰埅鏍?-->
    <nav class="navbar">
        <div class="container">
            <div class="logo">
                <i class="fas fa-baby"></i>
                <span>鏅鸿兘AI鑲插効鍔╂墜</span>
            </div>
            <ul class="nav-links">
                <li><a href="#home">棣栭〉</a></li>
                <li><a href="#articles">鏂囩珷涓績</a></li>
                <li><a href="#features">鍔熻兘浠嬬粛</a></li>
                <li><a href="#about">鍏充簬鎴戜滑</a></li>
                <li><a href="#community">濡堝鍦?/a></li>
            </ul>
            <div class="user-actions">
                <button class="btn login-btn">鐧诲綍</button>
                <button class="btn register-btn">娉ㄥ唽</button>
            </div>
            <div class="hamburger">
                <i class="fas fa-bars"></i>
            </div>
        </div>
    </nav>

    <!-- 棣栭〉鍐呭 -->
    <section id="home" class="hero">
        <div class="container">
            <div class="hero-content">
                <h1>鏅鸿兘AI鑲插効鍔╂墜</h1>
                <p>涓撲笟銆佽创蹇冪殑鑲插効鎸囧锛岄櫔浼村疂瀹濆仴搴锋垚闀?/p>
                <div class="cta-buttons">
                    <button class="btn primary-btn">绔嬪嵆浣撻獙</button>
                    <button class="btn secondary-btn">浜嗚В鏇村</button>
                </div>
            </div>
            <div class="hero-image">
                <img src="images/hero-image.svg" alt="鑲插効鍔╂墜" class="svg-image">
            </div>
        </div>
    </section>

    <!-- 浠婃棩鑲插効Tip -->
    <section class="daily-tip">
        <div class="container">
            <div class="tip-header">
                <h3><i class="fas fa-lightbulb"></i> 浠婃棩鑲插効Tip</h3>
                <span class="date"></span>
            </div>
            <div class="tip-content">
                <p>濡備綍搴斿瀹濆疂鐨勫垎绂荤劍铏戯紵灏濊瘯閫愭笎寤堕暱绂诲紑鏃堕棿锛屼繚鎸佸钩闈欑殑鎯呯华锛岀粰瀹濆疂鐣欎笅瀹夋姎鐗╁搧锛岃繖浜涙柟娉曞彲浠ユ湁鏁堢紦瑙ｅ垎绂荤劍铏戙€?/p>
                <a href="#" class="read-more">鏌ョ湅璇︽儏</a>
            </div>
        </div>
    </section>

    <!-- 绮鹃€変笓棰?-->
    <section class="featured-topics">
        <div class="container">
            <h2>绮鹃€変笓棰?/h2>
            <div class="topics-grid">
                <div class="topic-card">
                    <img src="images/topic1.svg" alt="鏂扮敓鍎挎姢鐞嗗叆闂ㄦ寚鍗? class="svg-image">
                    <h3>鏂扮敓鍎挎姢鐞嗗叆闂ㄦ寚鍗?/h3>
                    <p>浠庡嚭鐢熷埌婊℃湀锛屾柊鎵嬬埗姣嶅繀澶囩殑鎶ょ悊鐭ヨ瘑</p>
                    <a href="#" class="view-topic">鏌ョ湅涓撻</a>
                </div>
                <div class="topic-card">
                    <img src="images/topic2.svg" alt="杈呴娣诲姞鍏ㄦ敾鐣? class="svg-image">
                    <h3>杈呴娣诲姞鍏ㄦ敾鐣?/h3>
                    <p>6涓湀寮€濮嬬殑杈呴涔嬫梾锛岀瀛﹀杺鍏讳笉杩疯尗</p>
                    <a href="#" class="view-topic">鏌ョ湅涓撻</a>
                </div>
                <div class="topic-card">
                    <img src="images/topic3.svg" alt="鐫＄湢寮曞鎸囧崡" class="svg-image">
                    <h3>鐫＄湢寮曞鎸囧崡</h3>
                    <p>甯姪瀹濆疂寤虹珛鑹ソ鐨勭潯鐪犱範鎯紝璁╁叏瀹堕兘鑳藉ソ濂戒紤鎭?/p>
                    <a href="#" class="view-topic">鏌ョ湅涓撻</a>
                </div>
            </div>
        </div>
    </section>

    <!-- 鏂囩珷涓績 -->
    <section id="articles" class="article-center">
        <div class="container">
            <h2>鏂囩珷涓績</h2>
            
            <!-- 鎸夊勾榫勫垎绫?-->
            <div class="article-section">
                <h3>鎸夊勾榫勫垎绫?/h3>
                <div class="category-tabs">
                    <button class="tab-btn active">瀛曟湡</button>
                    <button class="tab-btn">0-3涓湀</button>
                    <button class="tab-btn">4-6涓湀</button>
                    <button class="tab-btn">7-12涓湀</button>
                    <button class="tab-btn">1-2宀?/button>
                    <button class="tab-btn">2-3宀?/button>
                </div>
            </div>

            <!-- 鎸変笓棰樺垎绫?-->
            <div class="article-section">
                <h3>鎸変笓棰樺垎绫?/h3>
                <div class="category-cards">
                    <div class="category-card">
                        <i class="fas fa-utensils"></i>
                        <span>鍠傚吇钀ュ吇</span>
                    </div>
                    <div class="category-card">
                        <i class="fas fa-moon"></i>
                        <span>鐫＄湢寮曞</span>
                    </div>
                    <div class="category-card">
                        <i class="fas fa-heartbeat"></i>
                        <span>鐤剧梾鎶ょ悊</span>
                    </div>
                    <div class="category-card">
                        <i class="fas fa-puzzle-piece"></i>
                        <span>鏃╂暀娓告垙</span>
                    </div>
                    <div class="category-card">
                        <i class="fas fa-brain"></i>
                        <span>琛屼负蹇冪悊</span>
                    </div>
                    <div class="category-card">
                        <i class="fas fa-shield-alt"></i>
                        <span>瀹夊叏闃叉姢</span>
                    </div>
                </div>
            </div>

            <!-- 鎺ㄨ崘鏂囩珷 -->
            <div class="recommended-articles">
                <h3>鎺ㄨ崘鏂囩珷</h3>
                <div class="articles-list">
                    <div class="article-item">
                        <img src="images/article1.svg" alt="濠村効鐫＄湢鍛ㄦ湡瑙ｆ瀽" class="svg-image">
                        <div class="article-info">
                            <h4>濠村効鐫＄湢鍛ㄦ湡瑙ｆ瀽锛氫负浠€涔堝疂瀹濈潯涓嶅畨绋筹紵</h4>
                            <p>浜嗚В濠村効鐨勭潯鐪犲懆鏈熺壒鐐癸紝鎺屾彙瀹夋姎鎶€宸э紝璁╁疂瀹濈潯寰楁洿瀹夌ǔ...</p>
                            <div class="article-meta">
                                <span>0-6涓湀</span>
                                <span>鐫＄湢寮曞</span>
                                <span>闃呰閲? 2.5k</span>
                            </div>
                        </div>
                    </div>
                    <div class="article-item">
                        <img src="images/article2.svg" alt="杈呴娣诲姞娉ㄦ剰浜嬮」" class="svg-image">
                        <div class="article-info">
                            <h4>杈呴娣诲姞娉ㄦ剰浜嬮」锛氫粠绗竴鍙ｅ埌澶氭牱鍖?/h4>
                            <p>璇︾粏浠嬬粛杈呴娣诲姞鐨勬椂闂淬€侀『搴忋€佺绫讳互鍙婂父瑙侀棶棰樿В绛?..</p>
                            <div class="article-meta">
                                <span>6-12涓湀</span>
                                <span>鍠傚吇钀ュ吇</span>
                                <span>闃呰閲? 1.8k</span>
                            </div>
                        </div>
                    </div>
                    <div class="article-item">
                        <img src="images/article3.svg" alt="瀹濆疂绾㈠眮鑲℃姢鐞? class="svg-image">
                        <div class="article-info">
                            <h4>瀹濆疂绾㈠眮鑲℃姢鐞嗭細棰勯槻涓庡簲瀵?/h4>
                            <p>绾㈠眮鑲℃槸甯歌鐨勫┐鍎跨毊鑲ら棶棰橈紝姝ｇ‘鐨勬姢鐞嗘柟娉曞彲浠ユ湁鏁堥闃插拰缂撹В...</p>
                            <div class="article-meta">
                                <span>0-1宀?/span>
                                <span>鐤剧梾鎶ょ悊</span>
                                <span>闃呰閲? 3.2k</span>
                            </div>
                        </div>
                    </div>
                </div>
                <button class="btn load-more">鏌ョ湅鏇村</button>
            </div>
        </div>
    </section>

    <!-- 鍔熻兘浠嬬粛 -->
    <section id="features" class="features">
        <div class="container">
            <h2>AI鑲插効鍔╂墜鍔熻兘</h2>
            <div class="features-grid">
                <div class="feature-card">
                    <i class="fas fa-comments"></i>
                    <h3>鑷劧璇█瀵硅瘽</h3>
                    <p>鐞嗚В鑲插効鐩稿叧闂锛屾彁渚涗笓涓氳В绛?/p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-file-alt"></i>
                    <h3>缁撴瀯鍖栧洖绛?/h3>
                    <p>鏍稿績缁撹銆佺悊璁轰緷鎹€佸疄鎿嶆楠わ紝涓€鐩簡鐒?/p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-history"></i>
                    <h3>涓婁笅鏂囩悊瑙?/h3>
                    <p>璁颁綇瀵硅瘽鍘嗗彶锛屾寔缁窡杩涜瘽棰?/p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-book"></i>
                    <h3>鐭ヨ瘑搴撴帹鑽?/h3>
                    <p>鏅鸿兘鎺ㄨ崘鐩稿叧涓撲笟鏂囩珷</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 绀惧尯浜掑姩 -->
    <section id="community" class="community">
        <div class="container">
            <h2>濡堝鍦?/h2>
            <div class="community-tabs">
                <button class="tab-btn active">鐑棬璁ㄨ</button>
                <button class="tab-btn">鏈€鏂板彂甯?/button>
                <button class="tab-btn">绮惧崕鍐呭</button>
            </div>
            <div class="community-posts">
                <div class="post-item">
                    <div class="post-header">
                        <div class="user-avatar">
                            <i class="fas fa-user"></i>
                        </div>
                        <div class="user-info">
                            <h4>灏忓疂璐濆濡?/h4>
                            <p>鍙戝竷浜?2灏忔椂鍓?/p>
                        </div>
                    </div>
                    <div class="post-content">
                        <h4>銆愭眰鍔┿€戜袱涓湀澶у疂瀹濆閱掗绻佹€庝箞鍔烇紵</h4>
                        <p>鎴戝瀹濆疂鍒氭弧涓や釜鏈堬紝鏈€杩戞櫄涓婃€绘槸閱掑緢澶氭锛屾湁鏃朵竴涓や釜灏忔椂灏遍啋涓€娆★紝鏈夌粡楠岀殑濡堝鑳藉垎浜竴涓嬬粡楠屽悧锛?/p>
                    </div>
                    <div class="post-stats">
                        <span><i class="far fa-comment"></i> 25 鍥炲</span>
                        <span><i class="far fa-thumbs-up"></i> 38 璧炲悓</span>
                    </div>
                </div>
                <div class="post-item">
                    <div class="post-header">
                        <div class="user-avatar">
                            <i class="fas fa-user"></i>
                        </div>
                        <div class="user-info">
                            <h4>浜屽疂濡堝</h4>
                            <p>鍙戝竷浜?鏄ㄥぉ</p>
                        </div>
                    </div>
                    <div class="post-content">
                        <h4>鍒嗕韩鎴戠殑杈呴娣诲姞蹇冨緱</h4>
                        <p>鎬荤粨浜嗘垜缁欎袱涓疂瀹濇坊鍔犺緟椋熺殑缁忛獙锛屽寘鎷椂闂淬€侀『搴忋€佹敞鎰忎簨椤圭瓑锛屽笇鏈涘鏂版墜濡堝鏈夊府鍔?..</p>
                    </div>
                    <div class="post-stats">
                        <span><i class="far fa-comment"></i> 42 鍥炲</span>
                        <span><i class="far fa-thumbs-up"></i> 102 璧炲悓</span>
                    </div>
                </div>
            </div>
            <button class="btn create-post-btn">鍙戝竷鏂板笘</button>
        </div>
    </section>

    <!-- Newsletter璁㈤槄 -->
    <section class="newsletter">
        <div class="container">
            <h2>璁㈤槄鑲插効鐭ヨ瘑鎺ㄩ€?/h2>
            <p>鏍规嵁瀹濆疂鏈堥緞锛屾瘡鍛ㄦ帹閫佸畾鍒跺寲鐨勮偛鍎跨煡璇嗗拰鎻愰啋</p>
            <form class="newsletter-form">
                <input type="email" placeholder="璇疯緭鍏ユ偍鐨勯偖绠? required>
                <input type="text" placeholder="瀹濆疂鍑虹敓鏃ユ湡 (YYYY-MM-DD)" required>
                <button type="submit" class="btn primary-btn">绔嬪嵆璁㈤槄</button>
            </form>
        </div>
    </section>

    <!-- APP涓婄嚎鎻愰啋 -->
    <section class="app-notify">
        <div class="container">
            <h3>APP鍗冲皢涓婄嚎锛屾暚璇锋湡寰咃紒</h3>
            <p>鐣欎笅鎮ㄧ殑閭锛岀涓€鏃堕棿鑾峰彇APP涓婄嚎閫氱煡</p>
            <form class="app-notify-form">
                <input type="email" placeholder="璇疯緭鍏ユ偍鐨勯偖绠? required>
                <button type="submit" class="btn secondary-btn">鎻愰啋鎴?/button>
            </form>
        </div>
    </section>

    <!-- 鐧诲綍妯℃€佹 -->
    <div id="login-modal" class="modal">
        <div class="modal-overlay"></div>
        <div class="modal-content">
            <div class="modal-header">
                <h3>鐢ㄦ埛鐧诲綍</h3>
                <button class="close-modal">&times;</button>
            </div>
            <div class="modal-body">
                <form id="login-form">
                    <div class="form-group">
                        <label for="login-email">閭鍦板潃</label>
                        <input type="email" id="login-email" placeholder="璇疯緭鍏ラ偖绠? required>
                    </div>
                    <div class="form-group">
                        <label for="login-password">瀵嗙爜</label>
                        <input type="password" id="login-password" placeholder="璇疯緭鍏ュ瘑鐮? required>
                    </div>
                    <div class="form-options">
                        <label><input type="checkbox"> 璁颁綇鎴?/label>
                        <a href="#" class="forgot-password">蹇樿瀵嗙爜锛?/a>
                    </div>
                    <button type="submit" class="btn primary-btn full-width">鐧诲綍</button>
                    <div class="form-footer">
                        <p>杩樻病鏈夎处鍙凤紵 <a href="#" class="switch-to-register">绔嬪嵆娉ㄥ唽</a></p>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!-- 娉ㄥ唽妯℃€佹 -->
    <div id="register-modal" class="modal">
        <div class="modal-overlay"></div>
        <div class="modal-content">
            <div class="modal-header">
                <h3>鐢ㄦ埛娉ㄥ唽</h3>
                <button class="close-modal">&times;</button>
            </div>
            <div class="modal-body">
                <form id="register-form">
                    <div class="form-group">
                        <label for="register-name">鏄电О</label>
                        <input type="text" id="register-name" placeholder="璇疯緭鍏ユ樀绉? required>
                    </div>
                    <div class="form-group">
                        <label for="register-email">閭鍦板潃</label>
                        <input type="email" id="register-email" placeholder="璇疯緭鍏ラ偖绠? required>
                    </div>
                    <div class="form-group">
                        <label for="register-password">瀵嗙爜</label>
                        <input type="password" id="register-password" placeholder="璇疯缃瘑鐮? required>
                    </div>
                    <div class="form-group">
                        <label for="register-confirm">纭瀵嗙爜</label>
                        <input type="password" id="register-confirm" placeholder="璇风‘璁ゅ瘑鐮? required>
                    </div>
                    <div class="form-group">
                        <label for="baby-birthday">瀹濆疂鍑虹敓鏃ユ湡锛堥€夊～锛?/label>
                        <input type="date" id="baby-birthday">
                    </div>
                    <div class="form-options">
                        <label><input type="checkbox" required> 鎴戝凡闃呰骞跺悓鎰?a href="#">鏈嶅姟鏉℃</a>鍜?a href="#">闅愮鏀跨瓥</a></label>
                    </div>
                    <button type="submit" class="btn primary-btn full-width">娉ㄥ唽</button>
                    <div class="form-footer">
                        <p>宸叉湁璐﹀彿锛?<a href="#" class="switch-to-login">绔嬪嵆鐧诲綍</a></p>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!-- 椤佃剼 -->
    <footer class="footer">
        <div class="container">
            <div class="footer-content">
                <div class="footer-logo">
                    <i class="fas fa-baby"></i>
                    <span>鏅鸿兘AI鑲插効鍔╂墜</span>
                </div>
                <div class="footer-links">
                    <h4>蹇€熼摼鎺?/h4>
                    <ul>
                        <li><a href="#">鍏充簬鎴戜滑</a></li>
                        <li><a href="#">鑱旂郴鎴戜滑</a></li>
                        <li><a href="#">浣跨敤鏉℃</a></li>
                        <li><a href="#">闅愮鏀跨瓥</a></li>
                    </ul>
                </div>
                <div class="footer-contact">
                    <h4>鑱旂郴鎴戜滑</h4>
                    <p><i class="fas fa-envelope"></i> contact@ai-babycare.com</p>
                    <p><i class="fas fa-phone"></i> 400-123-4567</p>
                </div>
                <div class="footer-social">
                    <h4>鍏虫敞鎴戜滑</h4>
                    <div class="social-icons">
                        <a href="#"><i class="fab fa-weixin"></i></a>
                        <a href="#"><i class="fab fa-weibo"></i></a>
                        <a href="#"><i class="fab fa-qq"></i></a>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <p>&copy; 2024 鏅鸿兘AI鑲插効鍔╂墜 鐗堟潈鎵€鏈?/p>
            </div>
        </div>
    </footer>

    <!-- AI鑱婂ぉ绐楀彛 -->
    <div id="chat-widget" class="chat-widget">
        <div class="chat-header" onclick="toggleChat()">
            <div class="chat-icon">
                <i class="fas fa-robot"></i>
            </div>
            <div class="chat-title">
                <h4>AI鑲插効鍔╂墜</h4>
                <p>鐐瑰嚮鍜ㄨ鑲插効闂</p>
            </div>
            <div class="chat-toggle">
                <i class="fas fa-chevron-up" id="chat-toggle-icon"></i>
            </div>
        </div>
        <div class="chat-container" id="chat-container">
            <div class="chat-messages" id="chat-messages">
                <div class="message ai-message">
                    <div class="message-content">
                        <p>鎮ㄥソ锛佹垜鏄櫤鑳紸I鑲插効鍔╂墜锛岃闂湁浠€涔堣偛鍎块棶棰樺彲浠ュ府鍔╂偍锛?/p>
                    </div>
                </div>
            </div>
            <div class="chat-input-container">
                <input type="text" id="chat-input" placeholder="璇疯緭鍏ユ偍鐨勯棶棰?.." disabled>
                <button class="btn send-btn" disabled><i class="fas fa-paper-plane"></i></button>
            </div>
        </div>
    </div>

    <!-- JavaScript -->
    <script src="js/main.js"></script>
    <script src="js/chatbot.js"></script>
    <script src="js/utils.js"></script>
</body>
</html>
